var myModule = angular.module("myModule",[]);

myModule.controller("MyCtrl",["$scope",function ($scope) {
    $scope.ctrlFlavor = "百威";
}])

myModule.directive("drink",function () {
   return{
       restrict: "AE",
       scope:{
           flavor:"="
       },
       template:"<input type='text' ng-model='flavor'/>"
   }
});